package booking.tests;

import org.junit.*;
import booking.pages.*;
import static booking.utils.TestData.*;
import static booking.utils.Locators.*;

public class SearchFoundVerification extends BaseTest{
	@Test
	public void verifylogin() throws InterruptedException {
		HomePage home = new HomePage(driver);
		
		home
			.navigateToLoginPage()
			.loginAs(loginData, passwordData)
			.goToHomePage()
			.isAtHomePage()
			.searchForTickets(fromDataFound, toData, dateData, timeFromData)
			.isResultsTableDisplayed();
		
		verify.checkElementIsVisible(driver.findElement(tableResultsLocator));
	}
}
